<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="/WEB-INF/facelets/template.xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.prime.com.tr/ui"                 
                xmlns:f="http://java.sun.com/jsf/core"
				xmlns:c="http://java.sun.com/jsp/jstl/core">

	<ui:param name="title" value="Admin - Edit Profile"/>

	<ui:define name="header">
		<p><b> Search the user to edit </b></p>

	</ui:define>

	<ui:define name="pageContents">
		<h:form>
			<h:panelGrid columns="2">

				<h:outputLabel value="Name"/>
				<h:inputText id="userName" value="#{adminSearchControllerBean.criteria.userName}"/>
				<h:outputLabel value="Age"/>
				<h:panelGroup>
					<h:outputLabel value="Min" />
					<h:selectOneMenu id="minAge" value="#{adminSearchControllerBean.criteria.pcMinAge}">                    
						<c:forEach var="i" begin="18" end="100">
							<f:selectItem itemValue="#{i}"/>
						</c:forEach>
					</h:selectOneMenu>
					<h:outputLabel value="Max" />
					<h:selectOneMenu id="maxAge" value="#{adminSearchControllerBean.criteria.pcMaxAge}">                    
						<c:forEach var="i" begin="18" end="100">
							<f:selectItem itemValue="#{i}"/>
						</c:forEach>
					</h:selectOneMenu>  
				</h:panelGroup>
				<h:outputLabel value="Height"/>
				<h:panelGroup>       
					<h:outputLabel value="Min" />
					<h:selectOneMenu id="minHeight" value="#{adminSearchControllerBean.criteria.pcMinHeight}">                    
						<c:forEach var="i" begin="0" end="60">
							<f:selectItem itemValue="#{i + 150}"/>
						</c:forEach>
					</h:selectOneMenu>
					<h:outputLabel value="Max" />
					<h:selectOneMenu id="maxHeight" value="#{adminSearchControllerBean.criteria.pcMaxHeight}">                    
						<c:forEach var="i" begin="0" end="60">
							<f:selectItem itemValue="#{i + 150}"/>
						</c:forEach>
					</h:selectOneMenu>  
				</h:panelGroup>
				<h:outputLabel value="Tobacco" />
				<h:selectOneMenu id="tobacco" value="#{adminSearchControllerBean.criteria.pcTobaccoUser}" >
					<f:selectItem itemLabel="Yarr" itemValue="true"/>
					<f:selectItem itemLabel="Nope" itemValue="false"/>
				</h:selectOneMenu>
				<h:outputLabel value="Children" />
				<h:selectOneMenu id="children" value="#{adminSearchControllerBean.criteria.pcChildren}" >
					<f:selectItem itemLabel="Yarr" itemValue="true"/>
					<f:selectItem itemLabel="Nope" itemValue="false"/>
				</h:selectOneMenu>
				<h:commandButton value="Search" action="#{adminSearchControllerBean.search}"/>
			</h:panelGrid>                         
		</h:form>
	</ui:define>

</ui:composition>